package com.zzq.mapper;

import com.zzq.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AdminMapper {

    @Select("select * from admin where username=#{username}")
    Admin findByAdminName(String username);

    @Update("update admin set password=#{newPwd} where username=#{username}")
    void updatePassword(String username, String newPwd);
}
